package com.lizicloud.infrastructure.common.constant;

/**
 * 应用常量类
 */
public class AppConstants {
    
    // 分页相关常量
    public static final int DEFAULT_PAGE_SIZE = 10;
    public static final int MAX_PAGE_SIZE = 100;
    
    // 学生相关常量
    public static final int MIN_AGE = 16;
    public static final int MAX_AGE = 60;
    public static final double MIN_GPA = 0.0;
    public static final double MAX_GPA = 4.0;
    
    // 正则表达式常量
    public static final String STUDENT_ID_PATTERN = "^\\d{8}$";
    public static final String PHONE_PATTERN = "^1[3-9]\\d{9}$";
    public static final String EMAIL_PATTERN = "^[A-Za-z0-9+_.-]+@([A-Za-z0-9.-]+\\.[A-Za-z]{2,})$";
    
    // 响应相关常量
    public static final String SUCCESS_MESSAGE = "操作成功";
    public static final String ERROR_MESSAGE = "操作失败";
    public static final String NOT_FOUND_MESSAGE = "数据不存在";
    
    private AppConstants() {
        // 私有构造函数，防止实例化
    }
}